﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainSite.Master" AutoEventWireup="true" CodeBehind="ChangePassword.aspx.cs" Inherits="BSCMFF.Web.Pages.Settings.ChangePassword" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <asp:ChangePassword ID="ChangePasswordSettings" runat="server" on 
        onchangingpassword="ChangePasswordSettings_ChangingPassword" 
        oncontinuebuttonclick="ChangePasswordSettings_ContinueButtonClick" 
        meta:resourcekey="ChangePasswordSettingsResource1" >
        <ChangePasswordTemplate>
            <table cellpadding="1" cellspacing="0" style="border-collapse:collapse;">
                <tr>
                    <td>
                        <table cellpadding="0">
                            <tr>
                                <td align="center" colspan="2">
                                    Change Your Password</td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="CurrentPasswordLabel" runat="server" 
                                        AssociatedControlID="CurrentPassword" 
                                        meta:resourcekey="CurrentPasswordLabelResource1">Password:</asp:Label>
                                </td>
                                <td>
                                    <telerik:RadTextBox ID="CurrentPassword" runat="server" TextMode="Password" 
                                        LabelCssClass="" meta:resourcekey="CurrentPasswordResource1"></telerik:RadTextBox>
                                    <asp:RequiredFieldValidator ID="CurrentPasswordRequired" runat="server"  ForeColor="Red"
                                        ControlToValidate="CurrentPassword" ErrorMessage="Password is required." 
                                        ToolTip="Password is required." ValidationGroup="ChangePasswordSettings" 
                                        meta:resourcekey="CurrentPasswordRequiredResource1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="NewPasswordLabel" runat="server" 
                                        AssociatedControlID="NewPassword" 
                                        meta:resourcekey="NewPasswordLabelResource1">New Password:</asp:Label>
                                </td>
                                <td>
                                    <telerik:RadTextBox ID="NewPassword" runat="server" TextMode="Password" 
                                        LabelCssClass="" meta:resourcekey="NewPasswordResource1"></telerik:RadTextBox>
                                    <asp:RequiredFieldValidator ID="NewPasswordRequired" runat="server"  ForeColor="Red"
                                        ControlToValidate="NewPassword" ErrorMessage="New Password is required." 
                                        ToolTip="New Password is required." 
                                        ValidationGroup="ChangePasswordSettings" 
                                        meta:resourcekey="NewPasswordRequiredResource1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="ConfirmNewPasswordLabel" runat="server" 
                                        AssociatedControlID="ConfirmNewPassword" 
                                        meta:resourcekey="ConfirmNewPasswordLabelResource1">Confirm New Password:</asp:Label>
                                </td>
                                <td>
                                    <telerik:RadTextBox ID="ConfirmNewPassword" runat="server" TextMode="Password" 
                                        LabelCssClass="" meta:resourcekey="ConfirmNewPasswordResource1"></telerik:RadTextBox>
                                    <asp:RequiredFieldValidator ID="ConfirmNewPasswordRequired" runat="server" 
                                        ControlToValidate="ConfirmNewPassword"  ForeColor="Red"
                                        ErrorMessage="Confirm New Password is required." 
                                        ToolTip="Confirm New Password is required." 
                                        ValidationGroup="ChangePasswordSettings" 
                                        meta:resourcekey="ConfirmNewPasswordRequiredResource1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2">
                                    <asp:CompareValidator ID="NewPasswordCompare" runat="server" 
                                        ControlToCompare="NewPassword" ControlToValidate="ConfirmNewPassword" 
                                        Display="Dynamic" ForeColor="Red"
                                        ErrorMessage="The Confirm New Password must match the New Password entry." 
                                        ValidationGroup="ChangePasswordSettings" 
                                        meta:resourcekey="NewPasswordCompareResource1"></asp:CompareValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2" style="color:Red;">
                                    <asp:Literal ID="FailureText" runat="server" EnableViewState="False" 
                                        meta:resourcekey="FailureTextResource1"></asp:Literal>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <telerik:RadButton ID="ChangePasswordPushButton" runat="server" 
                                        CommandName="ChangePassword" Text="Change Password" 
                                        ValidationGroup="ChangePasswordSettings" 
                                        meta:resourcekey="ChangePasswordPushButtonResource1" />
                                </td>
                                <td>
                                    <telerik:RadButton ID="CancelPushButton" runat="server" CausesValidation="False" 
                                        CommandName="Cancel" Text="Cancel" 
                                        meta:resourcekey="CancelPushButtonResource1" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </ChangePasswordTemplate>
        <SuccessTemplate>
            <table cellpadding="1" cellspacing="0" style="border-collapse:collapse;">
                <tr>
                    <td>
                        <table cellpadding="0">
                            <tr>
                                <td align="center" colspan="2">
                                    Change Password Complete</td>
                            </tr>
                            <tr>
                                <td>
                                    Your password has been changed!</td>
                            </tr>
                            <tr>
                                <td align="right" colspan="2">
                                    <telerik:RadButton ID="ContinuePushButton" runat="server" CausesValidation="False" 
                                        CommandName="Continue" Text="Continue" 
                                        meta:resourcekey="ContinuePushButtonResource1" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </SuccessTemplate>
    </asp:ChangePassword>

</asp:Content>
